﻿namespace Hsenl {
    public static class Database {
        public static DBRepository CurrentRepository => DatabaseManager.Instance.CurrentRepository;
        public static DBRepository[] GetRepositories() => DatabaseManager.Instance.GetRepositories();
        public static void SetRoot(string rootDir) => DatabaseManager.Instance.SetRoot(rootDir);
        public static void LoadAllRepositories() => DatabaseManager.Instance.LoadAllRepositories();
        public static DBRepository UseRepository(string name) => DatabaseManager.Instance.UseRepository(name);
        public static DBRepository CreateRepository(string name) => DatabaseManager.Instance.CreateRepository(name);
        public static DBRepository GetRepository(string name) => DatabaseManager.Instance.GetRepository(name);
        public static bool DeleteRepository(string name) => DatabaseManager.Instance.DeleteRepository(name);
    }
}